<template>
  <div>
    <p>sadadsd</p>
  </div>
</template>

<script>
import {getArea} from "@/api/prefrenceArea";

const defaultAreaParam = {
  name: '',
  subTitle: '',
  pic: '',
  sort: 0,
  showStatus: 0
}

export default {
  name: "areaDetail",
  props: {
    isEdit: {
      type: Boolean,
      default: false
    }
  },
  data(){
    areaParam: Object.assign({}, defaultAreaParam)
  },
  created() {
    if (this.isEdit) {
      getArea(this.$route.query.id).then(response => {
        this.productParam = response.data;
      });
    }
  }
}
</script>

<style scoped>

</style>
